package com.method;

/*
要写注释哦!!!
*/
public class Demo09 {
    public static void main(String[] args) {
        int[] arr = {11, 23, 33, 44, 55, 66, 77, 88, 99};
        String rs = printArr(arr);
        System.out.println(rs);
    }

    public static String printArr(int[] arr) {
        String resout = "[";
        for (int i = 0; i < arr.length; i++) {
            if (i == arr.length - 1) {
                resout += arr[i];
            } else {
                resout += arr[i]+",";
            }
        }
        resout += "]";
        return resout;
    }
}
